package com.example.mall.service;

import com.example.mall.pojo.Goods;
import com.example.mall.pojo.NewGoodsList;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface GoodsService {

    List<Goods> selectAll(Integer pagenum ,Integer pagesize );

    PageInfo<Goods> getPagesAll(Integer pagenum);

    Boolean deleteById(Integer id);

    List<Goods> selectByName(String goodsName,Integer pagenum,Integer pagesize);

    PageInfo<Goods> getPagesByName(String goodsName,Integer pagenum);

    Goods getGoodsName(String name);

    Boolean addGoods( String goods_name,Integer goods_price,
            Integer goods_number, Short goods_weight,Integer cat_id , String goods_introduce, String goods_big_logo,
            String goods_small_logo,  Integer add_time, Integer upd_time, Integer hot_mumber,
                      Short is_promote,Integer goods_state);
}
